//
//  JSMFrostedGlass.m
//  TakeYouTourTogether
//
//  Created by king on 15/12/7.
//  Copyright © 2015年 king. All rights reserved.
//

#import "JSMFrostedGlass.h"

@implementation JSMFrostedGlass

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createFrostedGlass];
    }
    return self;
}

- (void)createFrostedGlass {
    UIBlurEffect *effect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];
    
    UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:effect];
    
    effectView.frame = CGRectMake(0, 0, 215, 447);
    
    // effectView.frame = CGRectMake(80, 110, 215, 447);
    
    effectView.alpha = 0.1;
}

@end
